package com.housediyadmin.model
{
	import flash.net.FileReference;
	
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author liaoruohuai
	 * 
	 */
	public class PicModel extends Actor
	{
		[Bindable]
		public var selectedFiles: ArrayCollection = new ArrayCollection([]);
		
		[Bindabel]
		public var currentFiles: ArrayCollection = new ArrayCollection([]);
		
		[Bindable]
		public var currentPic:FileReference = new FileReference();
		
		[Bindable]
		public var addPicArray:ArrayCollection = new ArrayCollection();
		
		public function PicModel()
		{
			super();
		}
		
		public function updateCurrentFiles(newsArray:ArrayCollection):void
		{
			currentFiles.addAll(selectedFiles);
		}
		
		public function clearCurrentFiles():void
		{
			currentFiles.removeAll();
		}
	}
}